package edu.sysu.service;

import edu.sysu.domain.Book;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface BookService {
    // 业务层接口，首先增删改返回boolean，查询返回对象
    // 业务层接口方法要写详细文档注释

    public boolean save(Book book);

    public boolean update(Book book);

    public boolean delete(Integer id);

    public Book getById(Integer id);

    public List<Book> getAll();


}
